package com.bw.fxzk.room

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface ScoreDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(score: Score)
    @Query("select * from score")
    fun queryAll():MutableList<Score>
    @Query("select * from score where type=:type")
    fun queryType(type:Int):MutableList<Score>
}